package com.day0424;/*
 * @创建者：黄苟苟
 * @创建时间：2021/4/25   13:01
 * @Description描述
 **/


    class A1 {
        public String show(D obj) {
            return ("A and D");
        }

        public String show(A1 obj) {
            return ("A and A");
        }
    }



    class B extends A1{
        public String show(B obj){
            return ("B and B");
        }

        @Override
        public String show(A1 obj){
            return ("B and A");
        }
    }

    class C extends B{

    }

    class D extends B{

    }




